
let btn = document.getElementById("btn")
let btn2 = document.getElementById("btn2")
let btn3 = document.getElementById("btn3")
let inputContent = document.getElementById("inputContent")
let inputContent2 = document.getElementById("inputContent2")

btn.onclick = ()=>{
    console.log('render window',window)
    console.log('render window aaa',aaa)
}

btn2.onclick = ()=>{
    console.log(inputContent.value)
    aaa.saveFile(inputContent.value);
}


btn3.onclick = async ()=>{
    // console.log(inputContent2.value)
    // let aa = aaa.readFile();
    // alert(aa);
    // inputContent2.value = aa;

    console.log(inputContent2.value)
    let aa = await aaa.readFile();
    // alert(aa);
    inputContent2.value = aa;
    
}